#include <iostream>
#include <vector>

using namespace std;

void reverseString(vector<char>& s) 
{
    for (int i = 0, j = s.size() - 1; i < s.size()/2; i++, j--)
    {
        swap(s[i],s[j]);
    }
}

int main()
{
    int n;
    cin >> n;
    vector<char> s;
    char c;
    for(int i = 0; i < n; ++i)
    {
        cin >> c;
        s.push_back(c);
    }
    
    reverseString(s);
    for(vector<char>::iterator it = s.begin(); it != s.end(); ++it)
        cout << *it ;
    cout << endl;
    return 0;
}
